package com.example.highway.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;

@Entity
@Table(name = "Owner")
public class Owner {
    @Id
    @Column(name = "id")
    @JSONField(name = "id")
    private String id;

    @Column(name = "password")
    @JSONField(name = "password")
    private String password;
    @Column(name = "idNum")
    @JSONField(name = "idNum")
    private String idNum;
    @Column(name = "uName")
    @JSONField(name = "uName")
    private String uName;
    @Column(name = "pNum")
    @JSONField(name = "pNum")
    private String pNum;
    @Column(name = "dINum")
    @JSONField(name = "dINum")
    private String dINum;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdNum() {
        return idNum;
    }

    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getpNum() {
        return pNum;
    }

    public void setpNum(String pNum) {
        this.pNum = pNum;
    }

    public String getdINum() {
        return dINum;
    }

    public void setdINum(String dINum) {
        this.dINum = dINum;
    }

    @Override
    public String toString() {
        return "Owner{" +
                "id='" + id + '\'' +
                ", password='" + password + '\'' +
                ", idNum='" + idNum + '\'' +
                ", uName='" + uName + '\'' +
                ", pNum='" + pNum + '\'' +
                ", dINum='" + dINum + '\'' +
                '}';
    }
}
